KissAi\OpenAI_API D

Total Complexity 306
Dependencies 5
Dependents 8
Total lines 1,569
Lines of code 1,126
Logical lines of code 656
Comment lines 235
Methods 63
Properties 8

Methods 63

Method Rating Maintainability Complexity Lines of code
chatgpt_run_thread()
C
32 25 99
update_token_usage()
C
39 27 54
query_suggested_questions()
B
37 17 72
update_assistant_function()
A
49 13 29
get_vector_store_id()
A
52 11 23
chatgpt_query()
A
44 9 46
test_model_compatibility_with_assistant()
A
50 10 29
get_vector_store_files()
A
51 10 25
create_assistant()
A
43 8 47
save_message_and_token_count()
A
46 8 39
chatgpt_create_message()
A
45 8 39
update_assistant()
A
46 8 39
check_model_id()
A
53 9 22
delete_vector_store_file()
S
54 7 20
get_assistant()
S
57 7 19
filter_models_by_conditions()
S
56 7 18
get_latest_model()
S
56 7 17
call_get_api()
S
52 6 23
create_vector_store()
S
50 5 29
chatgpt_check_nonce()
S
53 5 24
upload_file()
S
48 4 32
delete_assistant()
S
58 5 14
initialize_thread()
S
52 4 28
sort_models_by_key()
S
61 5 12
update_thread()
S
51 4 26
call_delete_api()
S
52 4 24
get_session_thread()
S
55 4 20
delete_file()
S
61 4 11
set_assistant()
S
63 4 11
get_assistants()
S
57 3 18
replace_url_with_args()
S
65 4 8
is_call_get_api_success()
S
67 4 7
get_models()
S
67 4 7
get_model()
S
67 4 7
create_thread()
S
61 3 12
chatgpt_save_nonce()
S
55 2 19
send_function_response()
S
56 2 18
process_openai_function_calls()
S
68 3 7
fallbackToPrevious()
S
70 3 6
getThreadId()
S
69 2 7
isThreadId()
S
72 2 6
update_assistant_model()
S
65 2 9
handle_openai_function_call()
S
67 2 8
getInstance()
S
68 2 7
add_deleted_openai_file_id()
S
78 1 3
get_current_time_function_def()
S
69 1 7
__construct()
S
77 1 4
update_assistant_name()
S
74 1 5
update_assistant_instructions()
S
74 1 5
update_assistant_vector_store()
S
67 1 9
get_default_assistant_name()
S
63 1 10
is_model_compatible_with_assistant()
S
78 1 3
models_data_into_object()
S
77 1 3
get_bg_process_api_key()
S
82 1 3
get_assistant_by_id()
S
78 1 3
get_header()
S
73 1 5
get_default_header()
S
69 1 7
set_thread_id()
S
81 1 3
chatgpt_new_thread_and_start_new_session()
S
76 1 4
api_log()
S
72 1 5
get_assistant_id()
S
82 1 3
get_session_id()
S
76 1 4
is_deleted_openai_file_id()
S
78 1 3